gtk4.git
8 years agoDrop ::touch-event
Matthias Clasen [Mon, 1 Jan 2018 22:30:03 +0000 (17:30 -0500)]
Drop ::touch-event

This signal is not used in GTK+, and has a suitable
replacement with GtkGesture and its subclasses.

If you need to catch the raw touch events, the generic ::event
signal still works, too.

8 years agoDrop ::scroll-event
Matthias Clasen [Mon, 1 Jan 2018 22:24:16 +0000 (17:24 -0500)]
Drop ::scroll-event

This signal is not used in GTK+, and has a suitable
replacement with GtkEventControllerScroll.

If you need to catch these events, the generic ::event
signal still works, too.

8 years agoDrop ::proximity-in-event and ::proximity-out-event
Matthias Clasen [Mon, 1 Jan 2018 22:18:30 +0000 (17:18 -0500)]
Drop ::proximity-in-event and ::proximity-out-event

These are unused in GTK+, and are not very common.
If you need to catch these events, the generic ::event
signal still works.

8 years agoDrop ::map-event and ::unmap-event
Matthias Clasen [Mon, 1 Jan 2018 22:07:32 +0000 (17:07 -0500)]
Drop ::map-event and ::unmap-event

These are unused in GTK+, and are not very common.
If you need to catch these events, the generic ::event
signal still works.

8 years agowindow: Stop using ::map-event
Matthias Clasen [Mon, 1 Jan 2018 22:01:57 +0000 (17:01 -0500)]
window: Stop using ::map-event

Use ::event here, since we want to drop the event-specific
signals, and we already have a handler for the generic signal.

8 years agowidget: Stop using ::map-event
Matthias Clasen [Mon, 1 Jan 2018 21:57:55 +0000 (16:57 -0500)]
widget: Stop using ::map-event

Use ::event here, since we want to drop the event-specific
signals.

8 years agoDrop GtkWidget::destroy-event
Matthias Clasen [Mon, 1 Jan 2018 21:51:37 +0000 (16:51 -0500)]
Drop GtkWidget::destroy-event

This signal is unused in GTK+, and is documented as
'hard to ever get', so there's no good reason for
keeping it.

8 years agoDrop GtkWidget::delete-event
Matthias Clasen [Mon, 1 Jan 2018 20:46:15 +0000 (15:46 -0500)]
Drop GtkWidget::delete-event

Nobody is using this signal anymore, and ::delete is there
for the few places where it is needed.

8 years agoReplace all remaining uses of delete-event
Matthias Clasen [Mon, 1 Jan 2018 20:27:16 +0000 (15:27 -0500)]
Replace all remaining uses of delete-event

8 years agoReplace GtkWidget::delete-event by GtkWindow::close-request
Matthias Clasen [Mon, 1 Jan 2018 20:24:16 +0000 (15:24 -0500)]
Replace GtkWidget::delete-event by GtkWindow::close-request

The event is not useful at all, so we are better off
with a signal that doesn't have it, and it is only
relevant on toplevel windows, so we don't need it on
GtkWidget.

With this commit, delete events no longer go through the
::event, ::delete-event, ::event-after widget signals,
but just cause the ::close-request signal on GtkWindow to be
emitted.

8 years agotestoverlay: Use an event controller
Matthias Clasen [Mon, 1 Jan 2018 16:15:22 +0000 (11:15 -0500)]
testoverlay: Use an event controller

We can stop using ::enter-notify-event here, and use
our new motion event controller instead.

8 years agotestgtk: Redo the event watcher case
Matthias Clasen [Mon, 1 Jan 2018 16:08:44 +0000 (11:08 -0500)]
testgtk: Redo the event watcher case

Make this watch for emissions of ::event, since we
want to get rid of individual signals first.

8 years agotestgtk: Use an event controller for 'testing scrolling'
Matthias Clasen [Mon, 1 Jan 2018 15:59:48 +0000 (10:59 -0500)]
testgtk: Use an event controller for 'testing scrolling'

The current code was not working with smooth scroll events,
for starters.

8 years agotestinput: Drop some no-op signal handlers
Matthias Clasen [Mon, 1 Jan 2018 15:25:57 +0000 (10:25 -0500)]
testinput: Drop some no-op signal handlers

These were not doing anything.

8 years agotreeview: Don't handle ::delete-event
Matthias Clasen [Mon, 1 Jan 2018 14:04:56 +0000 (09:04 -0500)]
treeview: Don't handle ::delete-event

I don't think there is a way to get a delete event
on this popup - there's no window decorations, no close
button, etc. So no need to handle ::delete-event.

8 years agofont chooser: Stop using ::scroll-event
Matthias Clasen [Mon, 1 Jan 2018 05:49:38 +0000 (00:49 -0500)]
font chooser: Stop using ::scroll-event

We have an event controller for this purpose now.

8 years agotreeview: Use a scroll event controller
Matthias Clasen [Mon, 1 Jan 2018 03:06:35 +0000 (22:06 -0500)]
treeview: Use a scroll event controller

This is the recommended way to deal with scroll events
now.

8 years agotests: Avoid a use of ::map-event
Matthias Clasen [Sun, 31 Dec 2017 19:19:34 +0000 (14:19 -0500)]
tests: Avoid a use of ::map-event

We can use the ::map signal here instead.

8 years agogtk-demo: Drop a use of ::event-after
Matthias Clasen [Sun, 31 Dec 2017 19:13:26 +0000 (14:13 -0500)]
gtk-demo: Drop a use of ::event-after

It works just fine with ::event as well.

8 years agoDrop gtk_true and gtk_false
Matthias Clasen [Sun, 31 Dec 2017 17:49:53 +0000 (12:49 -0500)]
Drop gtk_true and gtk_false

These functions are entirely trivial, their documentation
is much longer than their implementation, and it contains
an example that is annotated as "don't do this"...

8 years agoinspector: Stop using ::delete-event signal
Matthias Clasen [Sun, 31 Dec 2017 18:03:31 +0000 (13:03 -0500)]
inspector: Stop using ::delete-event signal

We can just use GtkWindow::hide-on-close instead.

8 years agoicon-browser: Stop connecting to ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 17:57:39 +0000 (12:57 -0500)]
icon-browser: Stop connecting to ::delete-event

We can just use GtkWindow::hide-on-delete

8 years agowidget-factory: Stop connecting to ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 17:56:02 +0000 (12:56 -0500)]
widget-factory: Stop connecting to ::delete-event

We can use GtkWindow::hide-on-close instead

8 years agogtk-demo: Stop using ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 17:54:42 +0000 (12:54 -0500)]
gtk-demo: Stop using ::delete-event

8 years agotests: Stop using the delete-event signal
Matthias Clasen [Sun, 31 Dec 2017 17:52:54 +0000 (12:52 -0500)]
tests: Stop using the delete-event signal

We can use ::destroy in most cases.

8 years agotreeview: Stop using gtk_true
Matthias Clasen [Sun, 31 Dec 2017 17:17:53 +0000 (12:17 -0500)]
treeview: Stop using gtk_true

8 years agodoc tools: Stop using gtk_true
Matthias Clasen [Sun, 31 Dec 2017 17:17:08 +0000 (12:17 -0500)]
doc tools: Stop using gtk_true

8 years agodialog: Stop using the ::delete-event signal
Matthias Clasen [Sun, 31 Dec 2017 16:43:08 +0000 (11:43 -0500)]
dialog: Stop using the ::delete-event signal

We can achieve the desired result with a class handler
and the ::hide-on-close property.

8 years agofile chooser native: Stop connecting to ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 16:42:42 +0000 (11:42 -0500)]
file chooser native: Stop connecting to ::delete-event

We can just use GtkWindow::hide-on-close.

8 years agofile chooser button: Stop connecting to ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 16:41:59 +0000 (11:41 -0500)]
file chooser button: Stop connecting to ::delete-event

We can just use GtkWindow::hide-on-close.

8 years agoapplicationwindow: Stop connecting to ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 16:41:09 +0000 (11:41 -0500)]
applicationwindow: Stop connecting to ::delete-event

We can just use GtkWindow::hide-on-close.

8 years agoabout dialog: Stop connecting to ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 16:40:42 +0000 (11:40 -0500)]
about dialog: Stop connecting to ::delete-event

We can just use GtkWindow::hide-on-close.

8 years agocolor button: Stop connecting to ::delete-event
Matthias Clasen [Sun, 31 Dec 2017 16:40:00 +0000 (11:40 -0500)]
color button: Stop connecting to ::delete-event

We can just use GtkWindow::hide-on-close.

8 years agofont button: Use GtkWindow::hide-on-close
Matthias Clasen [Sun, 31 Dec 2017 15:43:01 +0000 (10:43 -0500)]
font button: Use GtkWindow::hide-on-close

Instead of the ::delete-event signal.

8 years agowindow: Add a hide-on-close property
Matthias Clasen [Sun, 31 Dec 2017 15:42:10 +0000 (10:42 -0500)]
window: Add a hide-on-close property

This lets us avoid ::delete-event signal handlers for just
this purpose.

8 years agoUpdate Polish translation
Piotr Drąg [Mon, 15 Jan 2018 21:19:28 +0000 (22:19 +0100)]
Update Polish translation

8 years agoinspector: Avoid a critical
Matthias Clasen [Mon, 15 Jan 2018 13:01:54 +0000 (08:01 -0500)]
inspector: Avoid a critical

I forgot to initialized the text field when I added
it back.

8 years agovulkan: use GDK_DISPLAY_NOTE
Matthias Clasen [Mon, 15 Jan 2018 13:01:01 +0000 (08:01 -0500)]
vulkan: use GDK_DISPLAY_NOTE

Where we have a display, we should use the per-display logging.

8 years agovulkan: Fix build
Timm Bäder [Mon, 15 Jan 2018 10:02:37 +0000 (11:02 +0100)]
vulkan: Fix build

This was changed in e151058dffbfd3b43798c2e6813eae9b952ba2d1 but
GDK_NOTE only takes 2 arguments.

8 years agotests: Update gl outset shadow tests
Timm Bäder [Mon, 15 Jan 2018 09:57:25 +0000 (10:57 +0100)]
tests: Update gl outset shadow tests

The results are slightly different for these now.

8 years agogl renderer: Render unblurred outset shadows differently
Timm Bäder [Mon, 15 Jan 2018 09:55:40 +0000 (10:55 +0100)]
gl renderer: Render unblurred outset shadows differently

We don't need to draw anything to a texure for those.

8 years agogskcairoblur: Don't apply y_scale twice
Timm Bäder [Mon, 15 Jan 2018 00:40:06 +0000 (01:40 +0100)]
gskcairoblur: Don't apply y_scale twice

A version of 29f36fed085d51bad16ec0e3f7ba5085bf9f82e8 but for the blur
we use in gsk.

8 years agoUpdate docs for debug cleanup
Matthias Clasen [Sun, 14 Jan 2018 22:03:28 +0000 (17:03 -0500)]
Update docs for debug cleanup

Drop mention of GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE,
add docs for GSK_DEBUG and new debug keys that were added.

8 years agoinspector: Some logging support
Matthias Clasen [Fri, 12 Jan 2018 04:55:27 +0000 (23:55 -0500)]
inspector: Some logging support

Add a way to toggle debug output on and off
from the inspector. For now, we don't add a
log viewer here, since that has the risk of
deadlock until we've the logging completely
separated by display, and also requires us
to install a log writer function, which
libraries are not supposed to do.

8 years agoinspector: Turn off gsk debugging
Matthias Clasen [Sun, 14 Jan 2018 21:07:12 +0000 (16:07 -0500)]
inspector: Turn off gsk debugging

We don't want debug spew from the renderer that
is used for the inspector window, so turn it off.

8 years agogsk: Add a setter for debug flags
Matthias Clasen [Sun, 14 Jan 2018 21:06:25 +0000 (16:06 -0500)]
gsk: Add a setter for debug flags

We need to set the global flags, since these are picked
up initially by new renderers.

8 years agogsk: Reorganize env vars
Matthias Clasen [Sun, 14 Jan 2018 20:11:33 +0000 (15:11 -0500)]
gsk: Reorganize env vars

Get rid of GSK_RENDERING_MODE and add the flags to GSK_DEBUG,
following the same pattern we use in gdk now.

8 years agogtk Use per-renderer flags for node names
Matthias Clasen [Sun, 14 Jan 2018 20:09:30 +0000 (15:09 -0500)]
gtk Use per-renderer flags for node names

We are moving to per-renderer flags, so lets check them here.

8 years agogsk: make logging per-renderer
Matthias Clasen [Sun, 14 Jan 2018 14:52:52 +0000 (09:52 -0500)]
gsk: make logging per-renderer

Add a setter for per-renderer debug flags, and use
them where possible. Some places don't have easy access
to a renderer, so this is not complete.
Also, use g_message instead of g_print throughout.

8 years agogsk: Drop unused debug flags
Matthias Clasen [Sat, 13 Jan 2018 00:09:46 +0000 (19:09 -0500)]
gsk: Drop unused debug flags

We are not logging anything for transforms or rendernodes atm.

8 years agogsk: Clarify a debug message
Matthias Clasen [Thu, 11 Jan 2018 19:17:01 +0000 (14:17 -0500)]
gsk: Clarify a debug message

We are printing a window type, not a display.

8 years agowayland: Use g_message for logging
Matthias Clasen [Fri, 12 Jan 2018 12:40:38 +0000 (07:40 -0500)]
wayland: Use g_message for logging

g_printerr is not the best for this.

8 years agoDrop the cairo-recording debug flag
Matthias Clasen [Sat, 13 Jan 2018 01:38:26 +0000 (20:38 -0500)]
Drop the cairo-recording debug flag

It is not very useful. The cairo-image option on the
other hand is has been useful in tracking down problems
in the past, so we'll keep it.

8 years agoDrop the gl-always debug option
Matthias Clasen [Sat, 13 Jan 2018 00:49:27 +0000 (19:49 -0500)]
Drop the gl-always debug option

This doesn't seem very useful.

8 years agoMake gdk logging per-display
Matthias Clasen [Fri, 12 Jan 2018 00:48:27 +0000 (19:48 -0500)]
Make gdk logging per-display

As far as possible, use per-display debug flags.

This will minimize the debug spew that we get from
the inspector if it is running on a separate display.

8 years agogdk: Reorganize env vars
Matthias Clasen [Thu, 11 Jan 2018 13:53:57 +0000 (08:53 -0500)]
gdk: Reorganize env vars

Drop GDK_GL, GDK_VULKAN and GDK_RENDERING_MODE.
Merge the useful bits into GDK_DEBUG.
Drop unused debug flags (CURSOR).

8 years agoMake geometry logging per-display
Matthias Clasen [Sun, 14 Jan 2018 14:55:32 +0000 (09:55 -0500)]
Make geometry logging per-display

Use the new macro to do this.

8 years agoicon theme: Make logging per-display
Matthias Clasen [Sun, 14 Jan 2018 14:53:48 +0000 (09:53 -0500)]
icon theme: Make logging per-display

As far as possible, for now. This needs some more
work to cover all locations.

8 years agogtk: add a per-display log macro
Matthias Clasen [Sun, 14 Jan 2018 14:54:45 +0000 (09:54 -0500)]
gtk: add a per-display log macro

This makes the conversion easier.

8 years agoAdd a display property to keymaps
Matthias Clasen [Fri, 12 Jan 2018 02:43:01 +0000 (21:43 -0500)]
Add a display property to keymaps

This is a general pattern we want to follow for all
objects in GDK. Also add a getter.

8 years agoUpdate Polish translation
Piotr Drąg [Sun, 14 Jan 2018 19:53:04 +0000 (20:53 +0100)]
Update Polish translation

8 years agoGdkMonitor: Fix link to nonexistent Display method
Daniel Boles [Sat, 13 Jan 2018 20:03:37 +0000 (20:03 +0000)]
GdkMonitor: Fix link to nonexistent Display method

There is no gdk_display_get_monitors(). Instead, we have to use
gdk_display_get_n_monitors() and gdk_display_get_monitor(int).

8 years agoHeaderBar: Explain use in conjunction w/ GtkWindow
Daniel Boles [Fri, 12 Jan 2018 22:56:11 +0000 (22:56 +0000)]
HeaderBar: Explain use in conjunction w/ GtkWindow

After hinting how good GtkHeaderBar is for GtkWindow, let’s link to
the latter and indicate how users can make the two work together.

8 years agoWindow: Mention GtkHeaderBar in set_titlebar() doc
Daniel Boles [Fri, 12 Jan 2018 21:26:36 +0000 (21:26 +0000)]
Window: Mention GtkHeaderBar in set_titlebar() doc

This is the typical thing passed here and what most users want, so we
should mention it here, rather than requiring users to figure it out.

8 years agoWindow: Clarify resize() doc about titlebar widget
Daniel Boles [Fri, 12 Jan 2018 21:22:11 +0000 (21:22 +0000)]
Window: Clarify resize() doc about titlebar widget

Clarify the reference to HeaderBar, as it applies to any custom title
widget; HeaderBar is only the most common one used. Also, fix a typo.

8 years agotooltip: Fix tooltip positions
Timm Bäder [Sat, 13 Jan 2018 09:38:13 +0000 (10:38 +0100)]
tooltip: Fix tooltip positions

Since gtk_widget_get_allocation doesn't return x/y values relative to
the GdkWindow anymore, we need to manually translate the widget
coordinates here.

8 years agotooltip: Remove some unused members
Timm Bäder [Sat, 13 Jan 2018 08:28:18 +0000 (09:28 +0100)]
tooltip: Remove some unused members

8 years agotooltip: Remove some unused includes
Timm Bäder [Sat, 13 Jan 2018 08:26:13 +0000 (09:26 +0100)]
tooltip: Remove some unused includes

8 years agotooltip: Remove custom picking code
Timm Bäder [Sat, 13 Jan 2018 07:35:39 +0000 (08:35 +0100)]
tooltip: Remove custom picking code

Just use gtk_widget_pick here for now. This also makes tooltips of
widgets work which are not inside a container.

8 years agowindow: Remove a resize grip mention from the docs
Timm Bäder [Sat, 13 Jan 2018 09:17:21 +0000 (10:17 +0100)]
window: Remove a resize grip mention from the docs

8 years agoadwaita: Regenerate proper CSS
Timm Bäder [Sat, 13 Jan 2018 06:39:54 +0000 (07:39 +0100)]
adwaita: Regenerate proper CSS

8 years agotooltip: Remove excessive padding
Timm Bäder [Fri, 12 Jan 2018 21:31:11 +0000 (22:31 +0100)]
tooltip: Remove excessive padding

tooltips support padding now, just like everthing else.

8 years agowindow: Fix tooltip allocation
Timm Bäder [Fri, 12 Jan 2018 21:22:51 +0000 (22:22 +0100)]
window: Fix tooltip allocation

Using get_preferred_size here does not work since it computes the
minimum height for the minimum width, but we want to know the minimum
height for the current width.

8 years agotooltip: Fold a function into its only caller
Timm Bäder [Fri, 12 Jan 2018 19:30:32 +0000 (20:30 +0100)]
tooltip: Fold a function into its only caller

8 years agogdk: Remove unused GdkStatus enum
Timm Bäder [Fri, 12 Jan 2018 15:05:45 +0000 (16:05 +0100)]
gdk: Remove unused GdkStatus enum

8 years agomain: Set event user data earlier
Timm Bäder [Thu, 11 Jan 2018 10:58:05 +0000 (11:58 +0100)]
main: Set event user data earlier

event_widget is not modified anymore after the assignment from
handle_pointing event and we need the event's user data set for the
_gtk_window_check_handle_wm_event call.

8 years agox11: Only set the keymap display once
Matthias Clasen [Fri, 12 Jan 2018 02:45:32 +0000 (21:45 -0500)]
x11: Only set the keymap display once

Not necessary to do this more than once.

8 years agowayland: Set display on keymaps
Matthias Clasen [Fri, 12 Jan 2018 02:44:49 +0000 (21:44 -0500)]
wayland: Set display on keymaps

This was forgotten so far: The display of keymaps
was NULL.

8 years agoSplit NEWS
Matthias Clasen [Thu, 11 Jan 2018 00:06:45 +0000 (19:06 -0500)]
Split NEWS

Split the NEWS file at the major release boundaries.

8 years agodocs: Mention textures in the GtkImage docs
Matthias Clasen [Wed, 10 Jan 2018 21:43:17 +0000 (16:43 -0500)]
docs: Mention textures in the GtkImage docs

This is now the preferred way to load images.

8 years agoscrolledwindow: Remove workarounds
Timm Bäder [Wed, 10 Jan 2018 15:01:37 +0000 (16:01 +0100)]
scrolledwindow: Remove workarounds

Instead of making sure here that the scrollbars are the last children,
just add the bin child as first one and keep the scrollbars last.

8 years agomagnifier: gtk_snapshot_finish may return NULL
Timm Bäder [Wed, 10 Jan 2018 13:41:29 +0000 (14:41 +0100)]
magnifier: gtk_snapshot_finish may return NULL

8 years agoQuiet a compiler warning
Matthias Clasen [Wed, 10 Jan 2018 12:35:46 +0000 (07:35 -0500)]
Quiet a compiler warning

Avoid this warning the other way, without bumping the libvulkan
dependency.

8 years agoRevert "Quiet a compiler warning"
Matthias Clasen [Wed, 10 Jan 2018 12:34:36 +0000 (07:34 -0500)]
Revert "Quiet a compiler warning"

This reverts commit 888f289114756daeb80591afd48496fce1d63e8d.

8 years agoentry: Fix text clipping
Timm Bäder [Wed, 10 Jan 2018 10:02:10 +0000 (11:02 +0100)]
entry: Fix text clipping

Clipping the text to the entire widget allocation is wrong if there are
icons involved.

8 years agoentry: Fix get_text_allocation
Timm Bäder [Wed, 10 Jan 2018 09:49:13 +0000 (10:49 +0100)]
entry: Fix get_text_allocation

These should be reported in GtkEntry coordinates, so relative to the
entry's origin. This fixes entrys with top/bottom padding applied.

8 years agoadwaita: Add some spacing to the scale value
Timm Bäder [Wed, 10 Jan 2018 09:10:11 +0000 (10:10 +0100)]
adwaita: Add some spacing to the scale value

So the slider does not overlap the value label. Since the value label is
allocated at the widget edge in gtk3, the correct fix here would
probably be to remove the 12px padding we apply to the entire scale and
instead apply it only to the trough.

8 years agoGDK W32: Remove non-managed DnD code
Руслан Ижбулатов [Mon, 11 Dec 2017 07:39:08 +0000 (07:39 +0000)]
GDK W32: Remove non-managed DnD code

All DnD is now managed in GDK.

This commit also rearranges some code in _gdk_win32_window_drag_begin().

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agoGDK W32: stop using the OWNERCHANGE event
Руслан Ижбулатов [Mon, 11 Dec 2017 07:37:03 +0000 (07:37 +0000)]
GDK W32: stop using the OWNERCHANGE event

It was removed completely. For now just comment out the code that used to emit it.

https://bugzilla.gnome.org/show_bug.cgi?id=773299

8 years agoadwaita: Fix scale styling for latest changes
Timm Bäder [Wed, 10 Jan 2018 08:29:45 +0000 (09:29 +0100)]
adwaita: Fix scale styling for latest changes

8 years agoscale: Allocate marks widget along the trough
Timm Bäder [Wed, 10 Jan 2018 08:29:05 +0000 (09:29 +0100)]
scale: Allocate marks widget along the trough

8 years agotestheightforwidth: Remove "vertical labels" test
Timm Bäder [Tue, 9 Jan 2018 07:23:36 +0000 (08:23 +0100)]
testheightforwidth: Remove "vertical labels" test

This was testing lables with the angle property set, which doesn't exist
anymore.

8 years agorenderbackground: Avoid excess css value lookups
Timm Bäder [Tue, 9 Jan 2018 05:12:46 +0000 (06:12 +0100)]
renderbackground: Avoid excess css value lookups

We iterate over all background layers twice, so only lookup blend mode
vlaues once.

8 years agorenderbackground: Add some constness
Timm Bäder [Tue, 9 Jan 2018 05:00:57 +0000 (06:00 +0100)]
renderbackground: Add some constness

8 years agorenderbackground: Pull out a gdk_rgba_is_clear check
Timm Bäder [Tue, 9 Jan 2018 04:59:19 +0000 (05:59 +0100)]
renderbackground: Pull out a gdk_rgba_is_clear check

We only call snapshot_color once, and this way it's clearer that nothing
will happen for a clear color from the caller side.

8 years agoGdkDrawingContext: Add missing nullable annotation
Timm Bäder [Mon, 8 Jan 2018 21:00:57 +0000 (22:00 +0100)]
GdkDrawingContext: Add missing nullable annotation

8 years agogl renderer: Sprinkle some const around
Timm Bäder [Mon, 8 Jan 2018 20:46:16 +0000 (21:46 +0100)]
gl renderer: Sprinkle some const around

8 years agowidget: Refine docs a bit
Timm Bäder [Mon, 8 Jan 2018 20:30:10 +0000 (21:30 +0100)]
widget: Refine docs a bit

8 years agoDocument the new GDK_VULKAN_DEVICE envvar
Matthias Clasen [Wed, 10 Jan 2018 05:14:10 +0000 (00:14 -0500)]
Document the new GDK_VULKAN_DEVICE envvar

Best to document them while they're fresh.

8 years agoDocument the GDK_VULKAN env var
Matthias Clasen [Wed, 10 Jan 2018 05:11:25 +0000 (00:11 -0500)]
Document the GDK_VULKAN env var

This was not documented at all yet.